
package com.foreveross.bsl.mam.model.device.domain;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.foreveross.bsl.mongodb.domain.Entity;



/**
 * 
 * 设备用户关联
 * @author tanzhixiong
 * @2013-7-8 @下午6:45:54
 */
@Document
public class DeviceUser extends Entity{
	
	@Id
	private String id;
	
	/**
	 * 设备id
	 */
	@Field("deviceID")
	private String deviceID;
	
	@Field("userID")
	private String userID;
	
	
	/**
	 *邦定时间 
	 */
	@Field("bondingTime")
	private Date bondingTime;
	
	/**
	 *邦定状态 
	 */
	@Field("bondingState")
	private int bondingState;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDeviceID() {
		return deviceID;
	}

	public void setDeviceID(String deviceID) {
		this.deviceID = deviceID;
	}

	public String getUserID() {
		return userID;
	}

	public void setUserID(String userID) {
		this.userID = userID;
	}

	public Date getBondingTime() {
		return bondingTime;
	}

	public void setBondingTime(Date bondingTime) {
		this.bondingTime = bondingTime;
	}

	public int getBondingState() {
		return bondingState;
	}

	public void setBondingState(int bondingState) {
		this.bondingState = bondingState;
	}
	
}